package com.lkd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合作商表
 * </p>
 *
 * @author 聂德祥
 * @since 2024-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_partner")
public class Partner implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 账号
     */
    @TableField("account")
    private String account;

    /**
     * 手机号
     */
    @TableField("mobile")
    private String mobile;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    @TableField("email")
    private String email;

    /**
     * 所在省
     */
    @TableField("province")
    private String province;

    /**
     * 所在市
     */
    @TableField("city")
    private String city;

    /**
     * 区县
     */
    @TableField("county")
    private String county;

    /**
     * 详细地址
     */
    @TableField("addr")
    private String addr;

    /**
     * 联系人
     */
    @TableField("contact")
    private String contact;

    /**
     * 分成比例
     */
    @TableField("ratio")
    private Integer ratio;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
